package org.dromara.xhlj.domain.vo;

import org.dromara.xhlj.domain.XhljProductFeedback;
import org.dromara.xhlj.domain.XhljEnterpriseProduct;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.wx.domain.vo.WxUserVo;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 展商产品反馈留言视图对象 xhlj_product_feedback
 *
 * @author yf
 * @date 2024-07-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = XhljProductFeedback.class)
public class XhljProductFeedbackVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 反馈留言ID
     */
    @ExcelProperty(value = "反馈留言ID")
    private Integer feedbackId;
    /**
     * 反馈留言内容
     */
    @ExcelProperty(value = "反馈留言内容")
    private String feedback;
    /**
     * 产品ID
     */
    @ExcelProperty(value = "产品ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = XhljEnterpriseProduct.TRANS_ID_TO_VO, mapper = "enterpriseProductId")
    private XhljEnterpriseProductVo enterpriseProduct;
    private Integer enterpriseProductId;
    /**
     * 创建人wx_user（留言用户）
     */
    @ExcelProperty(value = "创建人wx_user")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = WxUser.TRANS_ID_TO_VO, mapper = "createBy")
    private WxUserVo wxUser;
    private Integer createBy;
    /**
     * 评分（1至5星）
     */
    @ExcelProperty(value = "评分")
    private Integer rating;
    /**
     * 留言创建时间
     */
    @ExcelProperty(value = "留言创建时间")
    private Date createTime;
}
